package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeService {

    //登录
    ResultInfo login(String username, String password);

    List<Employee> findByName(String name);

    ResultInfo add(Employee employee);
    //根据id查询员工
    Employee findById(Long id);
    //修改员工信息
    Integer update(Employee employee);
}
